<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title><?php echo $title; ?></title>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?> 


<meta name="generator" content="WordPress" /> <!-- leave this for stats -->

<script type='text/javascript' src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/tab.js"></script>    

<script type="text/javascript" src="<?php echo $script; ?>"></script>

<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/superfish.js"></script> 
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/supersubs.js"></script>
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/cookies.js"></script> 
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/cufon.js"></script> 
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/UTM_Marlboro_400.font.js"></script> 
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/scrolltopcontrol.js"></script>
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/custom.js"></script>		
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/tooltips.js"></script>
<script type="text/javascript">
setTimeout('delay();', 1000);

function delay(){
$('.slidertext').fadeIn();
}

</script>

<!-- main stylesheet -->
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/style.css" type="text/css" media="screen" />
<!-- print stylesheet -->
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/print.css" type="text/css" media="print" />


<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/superfish.css" type="text/css" media="screen" />

	<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/jquery.prettyPhoto.js"></script>
	<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/prettyPhoto.css" type="text/css" media="screen" />
	<script type="text/javascript">
	$(document).ready(function() {
		$("a[rel^='prettyPhoto']").prettyPhoto();
	});
	
	</script>

<style type="text/css">



	h1, h2, #sidebar-left #customsearch h3, .mc-panes span, #ishome #customsearch input[type=submit] {
		color: #454753;
	}
	

	h3, h4, h5, h6 {
		color: #30323a	}
	
	.mc-panes span {
		color: #454753 !important;
	}
	
	body, #pagewrapper, input[type=submit], a.button, button, .mc-button, .mc-nav, .slidernav a.activeSlide, .slidernav a:hover {
		background-color: #42ABDB !important;	
	}
	
	.postmeta, .mc-panes, .mc-pane, #map {
		border-color: #454753 !important;
	}
	
	.sf-menu ul {
		border-color: #a2a3a9 !important;
	}
	
	#agentbox {border-color: #dadadd !important;}
	
	/* Menu dropdowns */
	
	.sf-menu li li:hover, .sf-menu li li.sfHover,
	.sf-menu li li a:hover {
		background-color: #f6f6f6 !important;
	}
	
	#slide-panel, .btn-slide:link, .btn-slide:visited {
		background-color: #151519 !important;
	}
	
	
	#sliderimage {
		background-color: #ecedee !important;
	}
	
	.slidernav a {
		background-color: #a2a3a9;
	}
	div#location {width: 105px; float: left;}
	div#location #zone { width: 90px; }
	.btn-slide:link, .btn-slide:visited {
		margin-right: 230px;
	}
			
	
				
	.highlight1 {
		color: black;
		background: yellow;
		padding: 2px 0;
	}
	.highlight2 {
		color: white;
		background: black;
		padding: 2px 0;
	}
	
	
	#introimage {
		width: 125px;
	}
	
	</style>


<script type="text/javascript">
/* <![CDATA[ */  
$(document).ready(function() {

$('<li id="home"><a href="<?php echo $home;?>" title="Home">Home</a></li>').prependTo('.sf-menu');

$('<li id="footerhome"><a href="<?php echo $home;?>" title="Home">Home</a></li>').prependTo('#footermenu');


// slideshow on homepage
$('#slider .images').after('<div class="slidernav">').cycle({
	fx: 'fade',
	timeout: 5000,
	next: '#next',
	prev: '#prev'
		, pager: '.slidernav'
	 });
 
 
 //cycle plugin for property detail page
$('#sliderimage').after('<div class="scrollable"><div class="items">').cycle({
	fx: 'fade',
	timeout: 0,
	slideExpr: "div.image",
	pager: ".items",
	// callback fn that creates a thumbnail to use as pager anchor 
    pagerAnchorBuilder: function(idx, slide) { 
	
		var src = $('img', slide).attr('src');
		
        return '<img src="' + src + '" width=62 height=62/>';
    } 
	});
});

/* ]]> */
</script>




<!--[if lte IE 8]>
    <link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/CSS/ie.css" />   
<![endif]-->

<!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/CSS/ie7.css" /> 

<script type="text/javascript">
setTimeout('delay();', 800);

function delay(){
document.getElementById('slider').style.display='block';
}
</script>	
<![endif]-->

<!-- for threaded comments -->
</head>

<body  id="ishome" class="home blog">
<div id="pagewrapper">
<div id="wrapper">
	<div id="header">
	<div>
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1000" height="152"   >
	  <param name="movie" value="banner.swf" />
	  <param name="quality" value="high" />
	  <param name="allowScriptAccess" value="always" />
	  <param name="wmode" value="transparent">
     <embed src="banner.swf"
      quality="high"
      type="application/x-shockwave-flash"
      WMODE="transparent"
      width="1000"
      height="152"
      pluginspage="http://www.macromedia.com/go/getflashplayer"
      allowScriptAccess="always" />
	</object>
	</div>
	<div id="basicsearch">
      
		<fieldset>
         <?php if ($keyword) { ?>
            <input type="text" value="<?php echo $keyword; ?>" id="filter_keyword" />
            <?php } else { ?>
            <input type="text" value="<?php echo $text_keyword; ?>" id="filter_keyword" onclick="this.value = '';" onkeydown="this.style.color = '#000000'" style="color: #999;" />
         <?php } ?>
         <input onclick="moduleSearch();" type="image" src="catalog/view/theme/<?php echo $template; ?>/images/mag.jpg" id="go" alt="Search" title="Search" />
		</fieldset>
	</div>			
			
	<div class="menu-main-container" style="float:left;width:730px;">
		<ul id="menu-main" class="sf-menu" style="margin-top:43px;float:left;width:730px;">
			<?php echo $categories; ?>
			<li><a href="<?php echo $contact;?>" title="<?php echo $text_contact;?>"><?php echo $text_contact;?></a></li>
			
		</ul>
	</div>
	</div><!-- end header -->
<?php if($products){?>
<div id="slider">
<div class="images"> 
	<?php foreach ($products as $product){?>
 	<div class="slide"><!-- slide -->  
		 <div class="slidertext" style="display:none;">
			<div class="slidertext_inner">
			
				<h2 class="citystatezip"><?php echo $product['name'];?></h2>				
				<ul><li><?php echo $product['meta_description'];?></li></ul>
				<div style="position: absolute;top:180px;left:0px;"><a class="button" href="<?php echo $product['href']?>"><?php echo $text_detail;?> >></a></div>
			</div><!-- end inner -->
		</div><!-- end slidertext -->
		<div class="sliderimage">
			<?php if($product['stock']==2){?>
			<div class="banner-large <?php echo $reduced;?>"></div>
			<?php }else{?>
			<div class="banner-large <?php echo $sold;?>"></div>
			<?php }?>
			
			<img alt="" class="sliderborder" src="catalog/view/theme/<?php echo $template; ?>/images/sliderborder.png" />
			<div class="faderight"></div>						
			<img width="460" height="270" " alt="<?php echo $product['model'];?>" src="<?php echo $product['image'];?>" />
		</div><!-- end sliderimage -->
	</div> <!-- end slide -->
	<?php }?>
 

 
</div><!-- end images -->

</div><!-- end slider -->

<?php }?>
<div id="customsearch">
<div class="inner">
		<h3><?php echo $infomation_title;?></h3>

		 <ul>
	      <?php foreach ($informations as $information) { ?>
	      <li><a href="<?php echo str_replace('&', '&amp;', $information['href']); ?>"><?php echo $information['title']; ?></a></li>
	      <?php } ?>
	      <li><a href="<?php echo str_replace('&', '&amp;', $sitemap); ?>"><?php echo $text_sitemap; ?></a></li>
		</ul>
		<div class="clear"></div>
		<div style="position: absolute;top:450px;right:75px;">
			<?php if ($languages) { ?>
	        <form action="<?php echo str_replace('&', '&amp;', $action); ?>" method="post" enctype="multipart/form-data" id="language_form">
	          <div class="switcher">            
	            <div class="option">
	              <?php foreach ($languages as $language) { ?>
	              <a onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $('#language_form').submit();"><img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" />&nbsp;&nbsp;<?php echo $language['name']; ?></a>
	              <?php } ?>
	            </div>
	          </div>
	          <div>
	            <input type="hidden" name="language_code" value="" />
	            <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
	          </div>
	        </form>
	        <?php } ?>	
        </div>	
	</div><!-- end inner -->
</div><!-- end sidebarwidget -->
<script type="text/javascript"><!--
$('#basicsearch input').keydown(function(e) {
	if (e.keyCode == 13) {
		moduleSearch();
	}
});

function moduleSearch() {
	url = 'index.php?route=product/search';
	
	var filter_keyword = $('#filter_keyword').attr('value')
	
	if (filter_keyword) {
		url += '&keyword=' + encodeURIComponent(filter_keyword);
	}
	location = url;
}
//--></script>
